package com.aiyi.education.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
* <p>
*
用户相关操作记录表
* </p>
* <p>
* Created by  Generator on 2020/04/23
* </p>
* <p>

//表 ks_user_record 字段列表：
* </p>
* <p>
(id , user_ip , flag , note , adddate , user_id , user_name , order_id )
* </p>
* <p>

//对象 KsUserRecord 属性列表：
* </p>
* <p>
(id , userIp , flag , note , adddate , userId , userName , orderId )
* </p>
* <p>

//表 ks_user_record 字段中文解释：
* </p>
* <p>
(id="记录ID/INTEGER" , user_ip="用户IP/VARCHAR" , flag="标志/INTEGER" , note="备注/VARCHAR" , adddate="添加日期/TIMESTAMP" , user_id="用户ID/INTEGER" , user_name="用户名称/VARCHAR" , order_id="订单ID/VARCHAR" )
* </p>
* <p>

//对象 KsUserRecord 属性解释：
* </p>
* <p>
(id="记录ID/Integer" , userIp="用户IP/String" , flag="标志/Integer" , note="备注/String" , adddate="添加日期/Date" , userId="用户ID/Integer" , userName="用户名称/String" , orderId="订单ID/String" )
* </p>
* <p>

//对象 KsUserRecord Json格式：
* </p>
* <p>
{"id":"记录ID/Integer" , "userIp":"用户IP/String" , "flag":"标志/Integer" , "note":"备注/String" , "adddate":"添加日期/Date" , "userId":"用户ID/Integer" , "userName":"用户名称/String" , "orderId":"订单ID/String" }
* </p>


*/


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("ks_user_record")
public class KsUserRecord extends Model<KsUserRecord> implements Serializable {
    /**
     * 记录ID
     */
     @TableId(value="id" ,type = IdType.INPUT)
    private Integer id;

    /**
     * 用户IP
     */
     @TableField("user_ip")
    private String userIp;

    /**
     * 标志
     */
     @TableField("flag") 
    private Integer flag;

    /**
     * 备注
     */
     @TableField("note") 
    private String note;

    /**
     * 添加日期
     */
     @TableField("adddate") 
    private Date adddate;

    /**
     * 用户ID
     */
     @TableField("user_id") 
    private Integer userId;

    /**
     * 用户名称
     */
     @TableField("user_name") 
    private String userName;

    /**
     * 订单ID
     */
     @TableField("order_id") 
    private String orderId;

    private static final long serialVersionUID = 9066279785026888051L;

    @Override
    public Serializable pkVal() {
         return this.id;
    }
}